BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
name = "MS Sans Serif"
charset = 0
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
AutoSize = 0 'False
BackStyle = 0
Caption = "FLabel1"
Delimiter = "|"
ParaBefore = 0
ParaFirst = 0
ParaLeft = 0
ParaRight = 0
WordWrap = 0 'False
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Printer.Print
' draw box
Printer.Line (1320, 1320)-Step(6000, 1680), , B
' set up printer
FLabel1.PrinterScaleMode = Printer.ScaleMode
' print at left = 1", top = 1"
' height = 1", width = 4"
FLabel1.PrinterTop = 1440
FLabel1.PrinterLeft = 1440
FLabel1.PrinterHeight = 1440
FLabel1.PrinterWidth = 4 * 1440
' print
FLabel1.PrinterHDC = Printer.hDC
' make sure printer object knows something has
' happened
Printer.Print ""
' end job
Printer.EndDoc
End Sub
Private Sub Command2_Click()
' get out
End
End Sub
Private Sub Form_Load()
FLabel1.ParaBefore = 240
FLabel1.ParaFirst = 480
FLabel1.WordWrap = True
Text1.Text = "This is a test of |color:blue|FLabel VBX|color:black|. Play with this text to change the formatting. Then, try printing it. You should see your text inside a box.|cr|It's fun ..."